package com.atguigu.srb.servicesms.feign.fallback;

import com.atguigu.srb.base.result.ResponseEnum;
import com.atguigu.srb.base.result.ResponseVo;
import com.atguigu.srb.servicesms.feign.CoreClient;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

@Service
@Slf4j
public class CoreClientFallback implements CoreClient {

    @Override
    public ResponseVo isUsed(String mobile) {
        log.error("远程验证手机是否重复注册失败：{}",mobile);
        return ResponseVo.setResult(ResponseEnum.ERROR);
    }
}
